﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh"><head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="robots" content="NOFOLLOW, NOINDEX">
		<title>
			仓库管理系统
		</title>
					<link href="CSS/default/css/admin-theme.css" rel="stylesheet" type="text/css" media="all">
	<script>

	    //获取用户名密码
	    function getArgsFromUrl(sHref, sArgName) {
	        var args = sHref.split("?");
	        var retval = ""; 
	        if (args[0] == sHref) /*参数为空*/
	        {
	            return retval; /*无需做任何处理*/
	        }
	        var str = args[1];
	        args = str.split("&");
	        for (var i = 0; i < args.length; i++) {
	            str = args[i];
	            var arg = str.split("=");
	            if (arg.length <= 1) continue;
	            if (arg[0] == sArgName)
	                retval = arg[1];
	        }
	        return retval;
	    }

	    function _submit() {

	        var userName = document.getElementById("username").value;
	        var passWord = document.getElementById("passwd").value;
	        if (userName == "") {
	            alert("用户名不能为空!");
	            return false;
	        } else if (passWord == "") {
	            alert("密码不能为空!");
	            return false;
	        } else {
	            window.name = userName + "|^*|" + passWord;
	            //window.loginForm.action = "default.htm";
	            //window.loginForm.submit();
	            window.location = "default.htm";//?userName=" + userName + "&passWord=" + passWord;
            }

	    }


	    function _printError() {
	        var errormsg = getArgsFromUrl(window.location + "", "errormsg");
	        if (errormsg != "") {
	            alert(decodeURI(errormsg));
	        }
	    }
        _printError();

        document.onkeydown = function (event_e) {
            if (window.event) {
                event_e = window.event;
            }

            var int_keycode = event_e.charCode || event_e.keyCode;
            if (int_keycode == '13') {
                //your handler function,please.  
                _submit();
                return false;
            }
        }
    </script>
	</head>
	<body class="bootstrap">
		<div id="login">
			<div id="content">
<div id="login-panel">
	<div id="login-header">
		<h1 class="text-center">
			<img id="logo" width="70px" src="images/logo.jpg">
			世通国际
		</h1>
		<hr>
		<h4 class="text-center">仓库管理系统</h4>
		<hr>
		<div id="error" class="hide alert alert-danger" style="display: none;">
				</div>

	</div>
    <form id="loginForm" action = "default.htm">       
	<div class="flip-container">
		<div class="flipper">
			<div class="front panel">
					<div class="form-group">
						<label class="control-label" for="email">用户名</label>
						<div class="input-group">
							<span class="input-group-addon"><i class="icon-envelope"></i></span>
							<input name="username" type="text" id="username" class="form-control" value="" autofocus="autofocus" tabindex="1" placeholder="用户名">
						</div>
					</div>
					<div class="form-group">
						<label class="control-label" for="passwd">
							密码
						</label>
						<div class="input-group">
							<span class="input-group-addon"><i class="icon-key"></i></span>
							<input name="passwd" type="password" id="passwd" class="form-control" value="" tabindex="2" placeholder="密码">
						</div>
					</div>
					<div class="form-group clearfix">
					</div>
					<div class="panel-footer">
						<button name="submitLogin" type="button" tabindex="4" onclick="javascript:_submit();" class="btn btn-default btn-lg btn-block ladda-button" data-style="slide-up" data-spinner-color="black">
							<span class="ladda-label">
								<i class="icon-check text-success"></i>
								登录
							</span>
						</button>
					</div>
					<input type="hidden" name="redirect" id="redirect" value="AdminDashboard">
			</div>
		</div>

     </div>
      </form>
	<div id="login-footer">
		<p class="text-center text-muted">
			<a href="" onclick="return !window.open(this.href);">
				© 2014-2015 - All rights reserved
			</a>
		</p>
		<p class="text-center">
        <a href="http://down.tech.sina.com.cn/download/d_load.php?d_id=40975&down_id=9&ip=180.169.64.162"><img src="images/google.png" width="34" height="34" /></a>
        <a href="http://download.firefox.com.cn/releases/stub/official/zh-CN/Firefox-latest.exe"><img src= "images/firefox.png" width="34" height="34"  /></a>
        <img src="images/ie.png" width="34" height="34" />
        <img src="images/safari.png" width="34" height="34" />
        <!-- 			<a class="link-social link-twitter" href="" target="_blank" title="Twitter">
				<i class="icon-twitter"></i>
			</a>
			<a class="link-social link-facebook" href="" target="_blank" title="Facebook">
				<i class="icon-facebook"></i>
			</a>
			<a class="link-social link-github" href="" target="_blank" title="Github">
				<i class="icon-github"></i>
			</a>
			<a class="link-social link-google" href="" target="_blank" title="Google">
				<i class="icon-google-plus"></i>
			</a>
           --> 

		</p>
	</div>
</div>

	</div>
</div>

</body></html>
